import 'package:pocketfile/generated/json/base/json_convert_content.dart';
import 'package:pocketfile/module/home/entity/device_entity.dart';

DeviceEntity $DeviceEntityFromJson(Map<String, dynamic> json) {
	final DeviceEntity deviceEntity = DeviceEntity();
	final String? ip = jsonConvert.convert<String>(json['ip']);
	if (ip != null) {
		deviceEntity.ip = ip;
	}
	final String? name = jsonConvert.convert<String>(json['name']);
	if (name != null) {
		deviceEntity.name = name;
	}
	final String? mac = jsonConvert.convert<String>(json['mac']);
	if (mac != null) {
		deviceEntity.mac = mac;
	}
	return deviceEntity;
}

Map<String, dynamic> $DeviceEntityToJson(DeviceEntity entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['ip'] = entity.ip;
	data['name'] = entity.name;
	data['mac'] = entity.mac;
	return data;
}